/*#include<stdio.h>
int main()
{
    int x=1;
    switch(x)
    {
        case 1:x++;
        default :x=x+6;
    }
    do
    {
        /* code 
    } while (1);
    printf("%d",x);
    return 0;
}*/
/*#include<stdio.h>
#include<string.h>
void asd(char *s)
{
	int len,k;
	len=strlen(s);
	for(int i=0;i<len;i++)
	{
		if((s[i]=='i')&&(s[i+1]=='s'))
		{
		    s[i]='b';
	        s[i+1]='e';
		}
	}
}
int main()
{
	char s[100];
	gets(s);
	asd(s);
	puts(s);
	return 0;
}*/
#include <stdio.h>
enum week{ Mon =1, Tues, Wed, Thurs, Fri, Sat, Sun } day,a;
int main()
{
    scanf("%d", &a );
    switch(a){
        case Mon: puts("Monday"); break;
        case Tues: puts("Tuesday"); break;
        case Wed: puts("Wednesday"); break;
        case Thurs: puts("Thursday"); break;
        case Fri: puts("Friday"); break;
        case Sat: puts("Saturday"); break;
        case Sun: puts("Sunday"); break;
        default: puts("Error!");
    }
    return 0;
}

